//  Core

.app-header {
  height: $header-height;
  width: $header-width;
  background: $header-bg;
  align-items: center;
  display: flex;
  position: relative;
  z-index: 1111;

  &--pane {
    display: flex;
    align-items: center;
  }

  .widgets-container {
    width: 77%;
    display: flex;
    justify-content: space-evenly;
  }

  @include media-breakpoint-down(md) {
    .app-header--pane + .app-header--pane {
      transition: $transition-base;
      transform: scale(1);
      visibility: visible;
    }
  }
  &--shadow {
    box-shadow: $header-shadow;
  }

  &--opacity-bg {
    background: $header-bg-transparent;
  }
  .hamburger-inner,
  .hamburger-inner:after,
  .hamburger-inner:before {
    background: $primary !important;
  }

  .toggle-mobile-sidebar-btn {
    display: none;
  }
}

// Fixed header

@include media-breakpoint-up(lg) {
  .app-header-fixed {
    .app-header {
      position: fixed;
      left: $sidebar-width;
      right: 0;
      margin-left: 0;
    }
  }
}
// Fixed sidebar

@include media-breakpoint-up(lg) {
  .app-sidebar-fixed:not(.app-header-fixed) {
    .app-header {
      margin-left: $sidebar-width;
    }
  }
}

// Collapsed sidebar

@include media-breakpoint-up(lg) {
  .app-sidebar-collapsed:not(.app-header-fixed) {
    .app-header {
      margin-left: $sidebar-width-collapsed;
      left: 0;
    }

    &.app-header-fixed {
      .app-header {
        left: $sidebar-width-collapsed;
        margin-left: 0;
      }
    }
  }
  @include media-breakpoint-up(lg) {
    .app-sidebar-collapsed {
      &.app-header-fixed {
        .app-header {
          left: $sidebar-width-collapsed;
        }
      }
    }
  }
}
// Responsive

@include media-breakpoint-down(md) {
  .app-header {
    left: 0;
    flex-shrink: 0;
    padding: 0 ($layout-spacer / 3);

    .toggle-mobile-sidebar-btn {
      display: flex;
    }
  }
}
